<template>
  <div>
    <!-- 头部固定 -->
    <div class="header">
      <img src="箭头.png" @click="fx()" />
      <h3>个性化半包</h3>
    </div>
    <!-- banner部分 -->
    <div id="box">
      <div class="banner">
        <h1>个性化设计+施工套餐</h1>
        <span>独立设计师专业设计，被窝精工品质施工</span>
      </div>
    </div>
    <!-- 服务流程 -->
    <div id="common">
      <div class="serve">
        <span>服务流程</span>
        <span @click="fy()">查询详情></span>
        <div class="fws">
          <Plan />
          <Plan />
          <Plan />
          <Plan />
        </div>
      </div>
      <!-- 内容分类 -->
      <div class="down">
        <van-dropdown-menu>
          <van-dropdown-item v-model="value1" :options="option1" />
          <van-dropdown-item v-model="value2" :options="option2" />
          <van-dropdown-item v-model="value3" :options="option3" />
          <van-dropdown-item v-model="value4" :options="option4" />
        </van-dropdown-menu>
      </div>
      <!-- 二导航 -->
      <div class="nav">
        <ul>
          <li>认证设计师</li>
          <li>小户型改造</li>
          <li>大宅设计</li>
          <li>LOFT复式</li>
          <li>空间规划</li>
          <li>BUG牛批</li>
        </ul>
      </div>
      <!-- 循环内容 -->
      <div>
        <Plan2 />
        <Plan2 />
        <Plan2 />
        <Plan2 />
      </div>
      <!-- <div class="plan">
        <div class="plan_top">
          <img src="头像.png" alt />
          <span>集景Studio</span>
          <span class="plan_tu2">
            <img src="热度.png" alt />999+人关注
          </span>
          <p>
            <span>
              元 / m
              <sup>2</sup>
            </span>
            300
          </p>
        </div>

        <div class="plan_bottom">
          <p>空间规划</p>
          <p>储物收纳</p>
          <p>色彩搭配</p>
        </div>
        <div class="plan_img">
          <img src="plan.png" alt />
          <hr />
        </div>
      </div>-->
    </div>
  </div>
</template>

<script>
import Vue from "vue";
import { DropdownMenu, DropdownItem } from "vant";

Vue.use(DropdownMenu);
Vue.use(DropdownItem);
import Plan from "@/components/trim/plan.vue";
import Plan2 from "@/components/trim/plan2.vue";
export default {
  data() {
    return {
      value1: 0,
      value2: "a",
      value3: "x",
      value4: "q",
      option1: [
        { text: "类型", value: 0 },
        { text: "设计机构", value: 1 },
        { text: "个人设计师", value: 2 },
      ],
      option2: [
        { text: "设计费", value: "a" },
        { text: "不限", value: "b" },
        { text: "100元/平以下", value: "c" },
        { text: "100-300元/平", value: "d" },
        { text: "300-500元/平", value: "e" },
        { text: "500元/平以上", value: "f" },
      ],
      option3: [
        { text: "风格", value: "x" },
        { text: "现代简约", value: "y" },
        { text: "北欧", value: "z" },
        { text: "日式", value: "n" },
        { text: "轻奢", value: "m" },
        { text: "复古", value: "l" },
      ],
      option4: [
        { text: "排序", value: "q" },
        { text: "综合排序", value: "w" },
        { text: "设计费高低", value: "e" },
        { text: "设计师热度", value: "f" },
      ],
    };
  },
  components: {
    Plan,
    Plan2,
  },
  methods: {
    fx() {
      this.$router.push("/boss");
    },
    fy() {
      this.$router.push("/flow");
    },
  },
};
</script>

<style scoped>
#common {
  width: 100%;
  margin: 0 auto;
}
#box {
  width: 100%;
  margin: 0 auto;
  background: #c09978;
}
.header {
  background: white;
  height: 30px;
  line-height: 30px;
  width: 100%;
  position: fixed;
  top: 0;
  padding-right: 40px;
  padding-left: 20px;
}
.header h3 {
  text-align: center;
  font-weight: bold;
}
.header img {
  width: 20px;
  height: 20px;
  float: left;
  margin-top: 5px;
}
.banner {
  padding-top: 50px;
  width: 90%;
  height: 180px;
  margin: 0 auto;
}
.banner h1 {
  font-size: 26px;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
}
.banner span {
  color: white;
}
.serve {
  width: 90%;
  height: 100px;
  background: white;
  margin: 0 auto;
  position: relative;
  bottom: 40px;
  border-radius: 3px;
  padding: 15px;
  box-shadow: 0px 5px 10px 0px #776b5e;
}
.serve span:nth-of-type(1) {
  font-size: 16px;
  font-weight: bold;
}
.serve span:nth-of-type(2) {
  font-size: 12px;
  float: right;
  margin-top: 5px;
  color: #9a9a9a;
}
.fws {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.down {
  margin-top: -20px;
}
.nav {
  width: 90%;
  margin: 10px auto;
}
.nav ul {
  width: 100%;
  display: flex;
  overflow-x: auto;
}
.nav li {
  flex-shrink: 0;
  font-size: 12px;
  /* border: 1px solid black; */
  border-radius: 5px;
  padding: 5px 8px;
  margin-right: 9px;
  background: #f7f7f7;
}
.nav li:hover {
  border: 1px solid #f6d8b4;
  color: #eaba92;
}
/* .plan {
  width: 90%;
  margin: 0 auto;
}
.plan_top {
  height: 40px;
}
.plan_top img {
  width: 30px;
  height: 30px;
  float: left;
}
.plan_tu2 img {
  width: 10px;
  height: 10px;
}
.plan_tu2 {
  font-size: 10px;
  font-weight: normal;
  margin-left: 10px;
  margin-top: 10px;
  background: #fbf1f0;
  color: #ad5d5c;
}
.plan span {
  display: flex;
  float: left;
}
.plan span:nth-of-type(1) {
  font-weight: bold;
  margin-left: 10px;
  margin-top: 5px;
}
.plan p {
  float: right;
  margin-top: 5px;
  font-size: 20px;
}
.plan p span {
  float: right;
  font-size: 10px;
  position: relative;
  top: -3px;
}
.plan_bottom {
  width: 90%;
  margin-left: 35px;
}
.plan_bottom p {
  font-size: 12px;
  float: left;
  margin-left: 10px;
  background: #f7f6f2;
  color: #a79067;
  padding: 2px 5px;
  border-radius: 10px;
}
.plan_img img {
  float: right;
  width: 90%;
  margin-top: 5px;
}
.plan_img hr {
  width: 285px;
  float: right;
  margin-right: 3px;
  background: #eeeeee;
} */
</style>